package com.chandon.common;

import lombok.*;

/**
 * 描述
 *
 * @author Dong
 * @version 1.0
 * @date 2021-04-12 18:10
 */

@Builder
@Data
public class Cv {
    public static void main(String[] args) {
        int p = 5;
        int o = ++p;
        System.out.println(p+"-------");
        System.out.println(o+"-------");

    }

    public Cv() {
    }

    public Cv(String name, int age, int scope) {
        this.name = name;
        this.age = age;
        this.scope = scope;
    }

    String name;
    int age;
    int scope;

    public Cv(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
        System.out.println(name);
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setScope(int scope) {
        this.scope = scope;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public int getScope() {
        return scope;
    }


    public static void staticAct() {
        System.out.println("act girl-friend");
    }

    public static int staticAge() {
        return 18;
    }

    public static void actRole(Role role) {
        System.out.println(new StringBuilder().append("act ").append(role.getName()).toString());
    }

    public static String actWithRole(Role role) {
        return new StringBuilder().append("act ").append(role.getName()).toString();
    }

    public void fun() {
        System.out.println("fun");
    }

    public int age() {
        return 18;
    }

    public void name(String name) {
        System.out.println(name);
    }

    public String role(int age) {
        return "yusaki";
    }

    public Role getRole(String roleName) {


        return new Role("rolename",18);
    }


}
